package com.wcs.exam.controller.admin.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * Admin-用户注册登录日志-分页响应对象
 * </p>
 *
 * @author wcs
 * @since 2025-03-13
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-用户注册登录日志-分页响应对象")
public class AdminUsersLogPageResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "登录状态(0失败，1成功，2注册)")
    private Integer loginStatus;

    @Schema(description = "登录客户端，参考枚举")
    private Integer loginClient;

    @Schema(description = "登录方式，参考枚举")
    private Integer loginType;

    @Schema(description = "登录IP")
    private String loginIp;

    @Schema(description = "国家")
    private String country;

    @Schema(description = "省")
    private String province;

    @Schema(description = "市")
    private String city;

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "操作系统")
    private String os;

    // ---------------------------------------- 拓展 ----------------------------------------

    @Schema(description = "手机号码")
    private String mobile;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "用户性别(1男，2女，3保密)")
    private Integer userSex;

    @Schema(description = "用户头像")
    private String userHead;
}
